import request from "@/utils/request";

export function activity_addBrowse(query) { //添加一次浏览量
    return request({
        url: "/active/mobile/active/addBrowse",
        method: "post",
        params: query
    });
}
export function activity_applyActivity(query) { //报名Active
    return request({
        url: "/active/mobile/active/applyActive",
        method: "post",
        params: query
    });
}
export function activity_findById(query) { //根据Id查询Active
    return request({
        url: "/active/mobile/active/findById",
        method: "post",
        params: query
    });
}
export function activity_list(query) { //分页查询Activity
    return request({
        url: "/active/mobile/active/list",
        method: "post",
        params: query
    });
}
export function activity_listAll(query) { //查询全部
    return request({
        url: "/active/mobile/active/listAll",
        method: "post",
        params: query
    });
}
export function activity_listAllMy(query) { //查询我的Activity
    return request({
        url: "/active/mobile/active/listAllMy",
        method: "post",
        params: query
    });
}

// /api/mobile/active/addReadNum 活动浏览
export function activity_addReadNum(query) {//活动浏览
    return request({
        url: "/active/mobile/active/addReadNum",
        method: "post",
        params: query
    });
}
// /api/mobile/active/addCollectNum 添加一次收藏数
export function activity_addCollectNum(query) {//添加收藏
    return request({
        url: "/active/mobile/active/addCollectNum",
        method: "post",
        params: query
    });
}
// POST /api/mobile/active/decCollectNum 取消一次收藏数
export function activity_decCollectNum(query) {//取消收藏
    return request({
        url: "/active/mobile/active/decCollectNum",
        method: "post",
        params: query
    });
}
//POST /api/mobile/activeComment/save 新增ActiveComment
export function activity_save(query) {//新增评论
    return request({
        url: "/active/mobile/activeComment/save",
        method: "post",
        params: query
    });
}
// POST /api/mobile/activeComment/getTree 获去评论树结构

export function activity_getTree(query) {//新增评论
    return request({
        url: "/active/mobile/activeComment/getTree",
        method: "post",
        params: query
    });
}
//POST /api/mobile/activeComment/addLike
export function activity_addLike(query) {//添加一次点评论赞
    return request({
        url: "/active/mobile/activeComment/addLike",
        method: "post",
        params: query
    });
}
//POST /api/mobile/active/addLikeNum 添加一次点赞数
export function activity_addLikeNum(query) {//添加一次活动论赞
    return request({
        url: "/active/mobile/active/addLikeNum",
        method: "post",
        params: query
    });
}
///   /api/mobile/articleComment/saveMsgMedal
export function saveMsgMedal(query) {//添加一次活动论赞
    return request({
        url: "/active/mobile/activeComment/saveMsgMedal",
        method: "post",
        params: query
    });
}
